﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="com.vs.RF.Web.Login" MasterPageFile="~/RF.Master" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../assets/css/login.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
    <script type="text/javascript">
        var iNumOfSubmit = 0;
        function valForm() {
            if (form1.tbUser.value == "") {
                alert("请输入用户");
                return false;
            }
            if (form1.tbCompany.value == "") {
                alert("请输入公司");
                return false;
            }
            return true;
        }

        function btnLogin_Click() {
            if (iNumOfSubmit > 0)
                return;
                
            if (valForm()) {
                form1.submit();
                iNumOfSubmit++;
            }
        }

        function on_Load() {
            form1.tbUser.focus();
        }
    </script>
    <center><%= stErrorMessage %></center>

	<div id="content"> 
		<div id="header"> 
			<h1><%--<img src="/assets/images/logo.png" alt="iWMS">--%>iWMS</h1> 
		</div>     
        <div id="darkbanner"> 
            <h2>登录</h2> 
        </div> 
        <div id="darkbannerwrap">
        </div>
        <form id="form1" name="form1" method="post" action="LoginHandling.aspx">
            <fieldset>
                <p>
                    <label for="tbUser">用户名：</label>
                    <input type="text" name="tbUser" value="VP" class="greyRed" />
                </p>
                <p>
                    <label for="tbPassword">密码：</label>
                    <input type="password" name="tbPassword" value="VP" class="greyRed" />
                </p>
                <p>
                    <label for="tbCompany">客户：</label>
                    <input type="text" name="tbCompany" value="QKL" class="greyRed" />
                </p>
            </fieldset>
            <br />
            <p class="copyright">©copyright viktor</p>
    </div>
                    <div id="footer">                    
                        <input type="button" id="btnLogin" value="登录" onclick="btnLogin_Click()" class="greyRed" />
                    </div> 
                </form>
                
    <script type="text/javascript">
        form1.tbUser.focus();
    </script>
</asp:Content>